#ifndef WINDOW_H
#define WINDOW_H

#include <QWidget>
#include <QImage>

#include "filter.h"

class ImageWidget;
class QLabel;
class QSpinBox;
class QComboBox;
class QPushButton;

class Window : public QWidget
{
    Q_OBJECT

public:
    Window();
    ~Window();

public slots:
    void open();

private slots:
    void onChange();

private:
    void filter();
    void enableWidgets(bool on);

    ImageWidget *imageWidget;
    QLabel *sizeLabel;
    QSpinBox *sizeSpinBox;
    QLabel *filterLabel;
    QComboBox *filterComboBox;
    QPushButton *openButton;
    QPushButton *quitButton;

    Filter *currentFilter;
    QImage originalImage;
};

#endif
